package com.bestdreamer.creational.simplefactory;

public class Test {

    /*
    // version 1.0
    public static void main(String[] args) {
        VideoFactory videoFactory = new VideoFactory();
        Video video = videoFactory.getVideo("java");
        if(video == null){
            return ;
        }
        video.produce();
    }

     */

    public static void main(String[] args) {
        VideoFactory videoFactory = new VideoFactory();
        Video video = videoFactory.getVideo(JavaVideo.class);
        if(video == null){
            return ;
        }
        video.produce();
    }

}
